﻿-if(url_c=="schedule" || url_c=="notarialaction" || url_c=="notarialregister" || url_c=="notarialsettings" || url_c=="role" || url_c=="status" || url_c=="workflow" || url_c=="notarialformrange" || url_c=="notarialform" || url_c=="notarialformhistory" || url_c=="enotexport")
  #submenu
    %ul
      %li
        %a{id=url_c=="schedule"?"smcalendars":"smcalendars_s",href="schedule.ivp/list"}
      %li
        %a{id=url_c=="notarialaction"?"smactions":"smactions_s",href="notarialaction.ivp/list"}
      %li
        %a{id=url_c=="notarialregister"?"smnotarialregister":"smnotarialregister_s",href="notarialregister.ivp/list"}
      %li
        %a{id=url_c=="notarialsettings"?"smnotarialsettings":"smnotarialsettings_s",href="notarialsettings.ivp"}
      %li
        %a{id=(url_c=="notarialformrange" || url_c=="notarialform" || url_c=="notarialformhistory" || url_c=="enotexport")?"smnotarialformrange":"smnotarialformrange_s",href="notarialformrange.ivp/list"}
-if((url_c=="task" || url_c=="taskschedule") && user.HasPermission("IsAdmin"))
  #submenu
    %ul
      %li
        %a{id=url_c=="taskschedule"?"smcalendar":"smcalendar_s",href="taskschedule.ivp"}
      %li
        %a{id=url_c=="task"?"smlist":"smlist_s",href="task.ivp/list"}
-if(url_c=="user" || url_c=="userpermission" || url_c=="eventlog")
  #submenu
    %ul
      %li
        %a{id=(url_c=="user" && url_a=="list")?"smuser":"smuser_s",href="user.ivp/list"}
      %li
        %a{id=(url_c=="user" && url_a=="userspermissions")?"smuserpermission":"smuserpermission_s",href="user.ivp/userspermissions"}
      %li
        %a{id=url_c=="eventlog"?"smeventlog":"smeventlog_s",href="eventlog.ivp/list"}    
-if(url_c == "logreport" || url_c=="dayreport" || url_c=="periodreport" || url_c=="productionreport" || url_c=="notarialactionreport" || url_c=="timereport")
  #submenu
    %ul
      -if (user.HasPermission("dayreport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="dayreport"?"smdayreport":"smdayreport_s",href="dayreport.ivp"}
      -if (user.HasPermission("periodreport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="periodreport"?"smperiodreport":"smperiodreport_s",href="periodreport.ivp"}
      -if (user.HasPermission("notarialactionreport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="notarialactionreport"?"smnotarialactionreport":"smnotarialactionreport_s",href="notarialactionreport.ivp"} 
      -if (user.HasPermission("productionreport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="productionreport"?"smproductionreport":"smproductionreport_s",href="productionreport.ivp"} 
      -if (user.HasPermission("timereport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="timereport"?"smtimereport":"smtimereport_s",href="timereport.ivp"}
      -if (user.HasPermission("logreport") || user.HasPermission("finance"))
        %li
          %a{id=url_c=="logreport"?"smlogreport":"smlogreport_s",href="logreport.ivp"}         
        